<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>home</title>
</head>
<body>
    <%- include('head',{title:'首页'}) %>
    <div>
        <h2>home - home </h2>
        <h2><%- msg%></h2>
        <h2><%- flag ?"今天晚上打游戏":"今晚打代码"%></h2>
        <h2><%- tag%></h2>
    </div>
   <% if(username){ %>
        <div>
            <h2>欢迎你：<%- username%></h2>
        </div>
   <% }else{ %>
        <div>
            <h2>请登录</h2>
            <button>登录</button>
            <button>注册</button>
        </div>
  <%  } %>

  <%- include foot %>
</body>
</html>